

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>${Inter.printOut('Create a note for the course',session.language)}</title>
    </head>
    <body>
        <div class="undernav">
            <span class="menuButton"><g:link class="" controller="course" action="show" id="${course?.id}">${Inter.printOut('Back to the course',session.language)}</g:link></span>
        </div>
        <div class="body">
            <h1>${Inter.printOut('Create a note for the course',session.language)} ${course?.name}</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${noteInstance}">
            <div class="errors">
                <g:renderErrors bean="${noteInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <input type="hidden" name="course.id" value="${course?.id}" />
                <div class="dialog">
                    <table>
                        <tbody>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="note">${Inter.printOut('Note',session.language)}:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:noteInstance,field:'note','errors')}">
                                    <textarea rows="5" cols="40" id="note" name="note">${fieldValue(bean:noteInstance,field:'note')}</textarea>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="year">${Inter.printOut('Year',session.language)}:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:noteInstance,field:'year','errors')}">
                                    <input type="text" id="year" name="year" value="${fieldValue(bean:noteInstance,field:'year')}" />
                                </td>
                            </tr>


                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="${Inter.printOut('Create',session.language)}" action="Create"/></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
